package com.ushine.design.design.a_creative_mode.b_factory_method;

/**
 * 具体工厂角色
 *
 * @author yls
 */
public class DatabaseLoggerFactory implements LoggerFactory {

    @Override
    public Logger createLogger() {
        //创建数据库日志记录器对象
        Logger logger = new DatabaseLogger();
        //初始化数据看日志记录器
        return logger;
    }

}
